﻿using DrawSimple1.Models;
using DrawSimple1.Services;
using System.Collections.ObjectModel;

namespace DrawSimple1.ViewModels
{
    public class MianWindowlModelView : ObservableObject
    {
        /// <summary>
        /// ctor
        /// </summary>
        public MianWindowlModelView()
        {
            SysMenuList = SysMenuInit();
            ItemCardList = ItemCardInit();
        }

        public ObservableCollection<SysMenu> SysMenuList { get; set; }
        public ObservableCollection<ItemCard> ItemCardList { get; set; }

        /// <summary>
        /// 菜单初始化数据
        /// </summary>
        private ObservableCollection<SysMenu> SysMenuInit()
        {
            return [
                    new(Guid.NewGuid().ToString(),"Dashboard","\xeb08"),
                    new(Guid.NewGuid().ToString(),"User Profile","\xe63e"),
                    new(Guid.NewGuid().ToString(),"Table List","\xe833"),
                    new(Guid.NewGuid().ToString(),"Icons","\xe864"),
                    new(Guid.NewGuid().ToString(),"Maps","\xe83d"),
                    new(Guid.NewGuid().ToString(),"Notifications","\xe840"),
                ];
        }

        private ObservableCollection<ItemCard> ItemCardInit()
        {
            return [
                    new("#ff9a03","Used Space","49/50GB","Get More Space...","\xe6f5","\xe601"),
                    new("#49975a","Revenue","$34,245","Last 24 Hours","\xe600","\xe676"),
                    new("#ff613e","Fixed Issues","75","Tracked from Github","\xe8ac","\xe65d"),
                    new("#0097cc","Followers","+245","Just Updated","\xe736","\xe8ce"),
                ];
        }
    }
}
